home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Sending Apple Events to parts < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     Sending Apple Events to parts
  2. Sent:        3/7/96 1:12 AM
  3. Received:    3/7/96 7:01 AM
  4. From:        Erlend Stav, estav@stud.unit.no
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Hello!
  9.  
  10. I have had a quick look on sending Apple events from one part to
  11. another, but have not quite figured out all details...
  12.  
  13. I would like to send a "play" and "stop" message to the SoundEditor
  14. part from DR4. I have got a reference to (wrapper of) the sound part.
  15.  
  16. If I have understood things right, I should use the ODMessageInterface
  17. that I can get from the Session, with calls to CreatePartObjSpec,
  18. CreatePartAddrDescr, CreateEvent and Send. I guess my trouble
  19. starts when I have to use the AEPutParamDescr; the parameters of this
  20. function do not seem to match the ones I get back from ODMessageInterface's
  21. methods.
  22.  
  23. Does anyone have any experience with this, or better still: some
  24. working example code?
  25.  
  26. I am using a configuration of OD DR4, ODF d11 and CW7.
  27.  
  28. - Erlend
  29. ------------------------------------------------------------------------
  30. Erlend Stav             Phone:  (+47) 22067441 (Tue-Thu, work, SINTEF)   
  31. Hans Osnes v. 8                 (+47) 73591844 (Mon&Fri, work, UNIT/AVH)
  32. N-7030 TRONDHEIM                (+47) 73945382 (Fri-Mon, private)
  33. NORWAY                  E-mail: Erlend.Stav@ifi.unit.no
  34.